Search results
39 packages found
Powerful pattern matching for Javascript
Returns true if a string has an extglob.
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
- bash
- bracket
- character-class
- expand
- expansion
- expression
- extglob
- extglobs
- file
- files
- filter
- find
- glob
- globbing
- View more
Matches a data object against a reference value Edit
Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)
Returns true if a file path does not contain any invalid characters.
Returns true if a windows file path has invalid characters.
matches string to object key, if no match calls default case
Like String.prototype.replace() but attempts to match the casing of the substring being replaced.
- case
- camelcase
- lowercase
- snakecase
- uppercase
- snake
- camel
- title
- titlecase
- case-sensitive
- match
- matches
- exec
- occurrence
- View more
Get the line number for each regex match found in a string.
Returns `true` if an array has a glob pattern.
Native pattern matching for JavaScript
A regular expression that matches common filenames that we want to ignore
Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a str
Provide another map which based on Map, and with loosed key matches
Find and replace utility for node.js. Transform strings by running multiple RegExp or string find-and-replace patterns on a string in sequence, reducing the final string to the accumulated result of each transformation. Patterns can be strings (or arrays
- expression
- expressions
- find
- format
- match
- matches
- modify
- pattern
- patterns
- regex
- regexp
- regular
- replace
- replaced
- View more
Returns lines matching a pattern in a string. Supports inverse operation as well, to exclude lines with matches.
- match
- line
- grep
- regex
- regular-expression
- pattern
- find
- search
- lines
- line match
- filter-lines
- locate
- inverse-match
- text-processing
### Summary
Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.